<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>16_数组的改</title>
    </head>
    <body>
        <script>
            var arr = ['篮球','台球','玻璃球','游泳','睡觉'];

            arr[2] = '悠悠球';

            console.log(arr);
        </script>
    </body>
</html>